package com.enzoism.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 * User: enzoism
 * Mark: 页面跳转使用Controller+@RequestMapping即可
 * Date: 2019/8/18- 17:36
 */
@Controller
@RequestMapping("/page")
public class PageController {

    @RequestMapping("index.html")
    public String index(Model model){
        model.addAttribute("name", "Enzo");
        return "index";
    }
}
